home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / URLStreamHandlerFactory.java < prev    next >
Text File  |  1998-09-22  |  1KB  |  43 lines

  1. /*
  2.  * @(#)URLStreamHandlerFactory.java    1.9 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.net;
  16.  
  17. /**
  18.  * This interface defines a factory for <code>URL</code> stream 
  19.  * protocol handlers. 
  20.  * <p>
  21.  * It is used by the <code>URL</code> class to create a 
  22.  * <code>URLStreamHandler</code> for a specific protocol. 
  23.  *
  24.  * @author  Arthur van Hoff
  25.  * @version 1.9, 07/01/98
  26.  * @see     java.net.URL
  27.  * @see     java.net.URLStreamHandler
  28.  * @since   JDK1.0
  29.  */
  30. public interface URLStreamHandlerFactory {
  31.     /**
  32.      * Creates a new <code>URLStreamHandler</code> instance with the specified
  33.      * protocol.
  34.      *
  35.      * @param   protocol   the protocol ("<code>ftp</code>",
  36.      *                     "<code>http</code>", "<code>nntp</code>", etc.).
  37.      * @return  a <code>URLStreamHandler</code> for the specific protocol.
  38.      * @see     java.io.URLStreamHandler
  39.      * @since   JDK1.0
  40.      */
  41.     URLStreamHandler createURLStreamHandler(String protocol);
  42. }
  43.